package com.njtoyo.taxi.admin.mapper.secondary.enums.adminuser;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @author mdf
 * @title: State
 * @description: TODO
 * @date 2024/3/19 13:28
 */
public enum UserState {

    OPEN(1, "开启"),
    CLOSE(-1, "关闭");

    @EnumValue
    private final int code;
    private final String desc;

    UserState(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
